define([
	'views/public/resetPassword',

	'views/youleBanner/list',

	'views/youleGame/list',
	'views/youleGame/add',
	'views/youleGame/change'



], function(
	ResetPassword,

	YouBannerList,
	YouGameList,
	YouGameAdd,
	YouGameChange

) {
	return {
		renderView: function(module,params) {
			module = module || this.getCurrentModule();
			switch (module) {

				//banner
				case 'youleBanner-list':
					new YouBannerList();
					break;
				//game
				case 'youleGame-list':
					new YouGameList();
					break;
				case 'youleGame-add':
					new YouGameAdd();
					break;
				case 'youleGame-change':
					new YouGameChange();
					break;
				
			}
		},
		getCurrentModule: function() {
			return location.hash.replace(/#view.*\/(\w+)/, '$1');
		}
	}
});